//
// Created by PC on 2017/11/10.
//

#ifndef SELECTIONSORT_STUDENT_H
#define SELECTIONSORT_STUDENT_H

#include <iostream>
using namespace std;

struct  Student{
    int score;
    string name;
    bool operator<(const Student& otherStudent){
        return score!=otherStudent.score?score<otherStudent.score:name<otherStudent.name;
    }

    friend  ostream& operator<<(ostream &os, const Student &student){
        os<<"Student:"<<student.name<<"\t"<<student.score;
    }
};
#endif //SELECTIONSORT_STUDENT_H
